package br.biofoco.p2p.storage;

import java.io.IOException;

/**
 * Entry point for storage activities
 * 
 *
 */
public interface StorageService {
	
	void open() throws IOException;
	
	boolean write(String key, byte[] value) throws IOException;
	
	byte[] read(String key) throws IOException;
	
	boolean exists(String key) throws IOException;

	void close() throws IOException;
}
